package com.xungou.utils;

import com.xungou.user.pojo.User;
import org.apache.shiro.SecurityUtils;

public class UserUtil {
    public static User getCurrentUser(){
        return (User) SecurityUtils.getSubject().getSession().getAttribute("user");
    }
}
